package rensoft.android.xml.w3c.impl;

import rensoft.java.xml.w3c.Node;
import rensoft.java.xml.w3c.NodeList;

public class W3CNodeList implements NodeList {

  private final org.w3c.dom.NodeList nodeList;

  public W3CNodeList(org.w3c.dom.NodeList nodeList) {
    this.nodeList = nodeList;
  }

  public int getLength() {
    return nodeList.getLength();
  }

  public Node item(int index) {
    return new W3CNode(nodeList.item(index));
  }

}
